<template>
	<view>
		<mumu-one-code @success='handlerSuccess' definition continue></mumu-one-code>
		<!-- <view class="record">
			<view class="list" v-for='item in codes'>{{item}}</view>
		</view> -->
	</view>
</template>

<script>
	import MumuOneCode from '@/uni_modules/mumu-oneCode/components/mumu-oneCode/mumu-oneCode.vue'
	import {getUserList} from '@/api/index.js';
	export default {
		components: { MumuOneCode },
		data() {
			return {
				codes:[]
			}
		},
		onLoad() {

		},
		methods: {
			handlerSuccess(code) {
				uni.showModal({
					content: code
				}).then(res => {
					/* window.location.reload(); */
					/* uni.navigateBack() */
				})
				
				
				/* if(code){
					uni.showLoading({
						title:'加载中...'
					})
					getUserList(code).then(res=>{
						uni.showModal({
							content: res.retData
						}).then(res => {
							window.location.reload();
							uni.navigateBack()
						})
					})
				} */
				
				
			}
		}
	}
</script>


<style lang='scss' scoped>
.record {
	position: fixed;
	top: 0;
	left: 0;
	width: 50%;
	height: 400rpx;
	overflow: auto;
	background-color: rgba(000, 000, 000, 0.5);
	z-index: 9999;
	color: #fff;
	font-size: 12px;
}
</style>
